/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kleintjes.creational.singleton_pattern.model;

/**
 *
 * @author Hughan.Kleintjes.hughanK@gmail.com
 */
public class SingletonExample {
    
    private static SingletonExample singletonExample = null;
    
    private SingletonExample() {
    }
    
    public static SingletonExample getInstatnce() {
        if(singletonExample == null) {
            singletonExample = new SingletonExample();
        }
        return singletonExample;
    }
    
    public void sayHello() {
        System.out.println("Hello");
    }
    
    public String returnHello()
    {
        return "Hello";
    }
        
}
